<?php

namespace frontendx\controllers;

/**
 * @author  shuang
 * @date    2016-10-26 14:13:22
 * @version V1.0
 * @desc    
 */
use frontendx\models\WB_Article;
use Yii;

class ArticleController extends \common\components\WXController {
    /* 帮助中心 */

    public function actionHelp() {
        $this->headerTitle = "帮助教程";
        $res = WB_Article::getArticleList();
        return $this->render("help", $res);
    }

    /*
     * 内容详情
     */

    public function actionHelpshow() {
        $this->headerTitle = "帮助详情";
        $id = Yii::$app->request->get("id");
        $data = WB_Article::findOne($id);
        return $this->render("helpshow", ["data" => $data]);
    }

    /*
     * 平台介绍
     */

    public function actionIntroduce() {
        $id = 5325;
        $data = WB_Article::findOne($id);
        return $this->render("helpshow", ["data" => $data]);
    }

    /*
     * 联系方式
     */

    public function actionContact() {
        $this->headerTitle = "联系客服";
        $this->footerShow = false;
        return $this->render("contact");
    }

}
